﻿@{
    Layout = null;
}
@using ZBJF.Warranty.Common.Common
@model List<ZBJF.Warranty.Model.PageMenu>
@foreach (var item in Model.Where(m => m.ParentID == ViewBag.Pid))
{
    int layer = ViewBag.Layer;
    <option value="@item.ID">@Html.Raw(CommonMethod.GetHtmlBlankSpace(layer)) @item.PageName</option>
    var childMenu = Model.Where(m => m.ParentID == item.ID);
    layer = layer + 1;
    if (childMenu.Any())
    {
        @Html.Action("ShowMenuSelectList", "PageMenu", new { listPage = Model, pid = item.ID, layer = layer })
    }
    layer = layer - 1;
}